<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tab插件</title>
<link rel="stylesheet" href="./tab.css">
</head>
<body>
    <!-- 轮播图1 -->
    <div class="box box1">
        <!-- 标题 -->
        <ul>
            <li class="active">1</li>
            <li>2</li>
            <li>3</li>
        </ul>
        <!-- 内容 -->
        <ol>
            <li class="active">1</li>
            <li>2</li>
            <li>3</li>
        </ol>
    </div>

    <!-- 轮播图1 -->
    <div class="box box2">
        <!-- 标题 -->
        <ul>
            <li class="active">1</li>
            <li>2</li>
            <li>3</li>
        </ul>
        <!-- 内容 -->
        <ol>
            <li class="active">1</li>
            <li>2</li>
            <li>3</li>
        </ol>
    </div>

    <script type = "module">
        import Tab from "./tab.js"
        const tab1 = new Tab(".box1")
        const tab2 = new Tab(".box2")
    </script>
    </body>
    </html>